<include file="./Web/Tpl/default/head_inner.html"/>
<style>
.gofav{ 
display:inline-block;
width:20px; height:17px;
vertical-align:middle; /* 居中对齐， */ 
background-image:url(__TMPL__/images/base_bg.png);
background-position:-61px -47px;
background-repeat:no-repeat;
}
</style>
<script>

</script>
<div id="body">
<div class="HeightTab clearfix"></div>
<!--inner start -->
<div class="inner">
<!--left start-->
<div class="left">
<div class='Sbox'>
<div class='topic'><a href="#">{:get_first_sortName($type[typeid]);}</a></div>
<div class='blank'>
<ul>
<php>$first_id = get_first_father($type['typeid']);</php>
<category parentid="$first_id" id="vo">
<li><A href='{$vo.typeid|url=lists,###}'>{$vo.typename}</A></li>
</category>
</ul></div></div>

<div class='HeightTab clearfix'></div>
<div class="Sbox">
<div class="topic">最近更新&nbsp;&nbsp;&nbsp;New</div>
<div class="list">
<dl>
<php>$all_ids=get_children($first_id);</php>
<arclist model="article" where="typeid in($all_ids)" order="addtime desc" num="5">
<dd><a href='{$vo.aid|url='articles',###}' target='_blank' title='{$vo.title}'>{$vo.title}</a></dd>
</arclist>
</dl>
</div>

</div>

<div class='HeightTab clearfix'></div>
<div class="Sbox">
<div class="topic">热门推荐&nbsp;&nbsp;&nbsp;Hot</div>
<div class="list">
<dl>
<arclist model="article" where="typeid in($all_ids)" order="istop desc,ishot desc" num="5">
<dd><a href='{$vo.aid|url='articles',###}' target='_blank' title='{$vo.title}'>{$vo.title}</a></dd>
</arclist>
</dl>
</div>
</div>

<include file="Public:contact"/>
</div>
<!--left end-->
<!--right start-->
<div class="right">
<div class="Position"><span>你的位置：{$nav}</span></div>
<div class="HeightTab clearfix"></div>
<!--main start-->
<div class="main">
<div class="content">
<div class="title"><h3><notempty name="article.titlecolor"><font color="{$article.titlecolor}"></notempty>{$article.title}<present name="nowpage">({$nowpage})</present><notempty name="article.titlecolor"></font></notempty> </h3></div>
<div class="infos">作者：{$article.author}&nbsp;&nbsp; 来源：{$article.copyfrom}&nbsp;&nbsp;已浏览【<script src="{:U('Api/hits_js?aid='.$article['aid'])}"></script>】次&nbsp;文字：【<a  href="javascript:fontZoom(16)">大</a>】【<a  href="javascript:fontZoom(14)">中</a>】【<a   href="javascript:fontZoom(12)">小</a>】 <a href="javascript:goto_fav()"><span class="gofav"></span>加入收藏夹</a></div>
<div class="maincontent clearfix">
<div id="MainContent" class="maincontent clearfix">
{$article.content}
</div>
</div>
<!--详细页的分页自己美化-->
<div class="clearfix">{$page}</div>
<div class="prenext">{$updown}</div>
<!--评论区-->

<div class="IntroTitle">评论</div>
<div class='clearfix'></div>
    <link href="__TMPL__/css/pl.css" rel="stylesheet" type="text/css"/>
    <div id="pinglun">
			  <div id="pinglunt">以下是网友对 <span class="blue">{$article.title}</span> 的评论：</div>
			  <div id="list"></div>
			  <div id="MultiPage"></div><!--评论分页 -->
              <div id="pinglunother">
               <div id="pinglunym"></div><!--评论信息 -->
              </div>
              <div id="pinglunfb">
			  <div id="pinglunfbt">发表评论</div>
			  <input type="hidden" name="aid" id="aid" value="{$article.aid}">
			  <textarea rows="20" name="content" cols="50"  style="width:650px; height:90px; border:1px solid #e6e6e6;" id="plContent"></textarea>
			  <div class="qdfb">大名:<input name="author" class="button" type="text" value="<neq name='_SESSION.dami_username' value=''>{$_SESSION.dami_username}<else/>游客</neq>" id="Author"  maxlength="20" size="12"/>
			  <input type="button" value="确认发表" name="submit"  id="sendGuest" class="button submit" onClick="AddNew()"></div>
			  </div>
         </div>
<script type="text/javascript" src="__TMPL__/js/ajaxpl.js"></script>
<script>
var root = '__ROOT__';
$(function(){
			 showre({$article.aid},1);
});
//加入收藏夹
function goto_fav(){
		 $.getJSON('__ROOT__/index.php?m=Member&a=fav_save',{ aid:{$article.aid} },function(data){
		//获得服务器响应
		alert(data.info);
		 });
}
</script>
		<br>    
</div>
</div>
</div>
</div>
</div>
<include file="$footer"/>